package main

import "fmt"

func main()  {
	var arr = []int{2,1,3,1,2,1,2}
	num :=0
	for i:=0; i<64;i++  {
		sum :=0
		for _,v:= range arr{
			sum +=v >> i & 1
		}
		a := sum%3
		num |= a << i
	}
	fmt.Println(num)
}
